﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace laba2.Entity
{
    public class Student :Entity
    {
        private string _name;
        private string _address;
        private string _email;
        private string _phone;


        public Student(int id, string email, string address, string name, string phone) : base(id)
        {
            _email = email;
            _address = address;
            _name = name;
            _phone = phone;
        }

        public Student(int id, string name) : base(id)
        {
            _name = name;
        }

        public Student(int id, string name, string address) :this(id,name)
        {
            _address = address;
        }

        public Student()
        {
        }

        public Student(string name, string address, string email, string phone)
        {
            _name = name;
            _address = address;
            _email = email;
            _phone = phone;
        }


        public string Name
        {
           get { return _name; }
           set { _name = value; }
        }

        public string Address
        {
           get { return _address; }
           set { _address = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }
    }
}
